package com.mzz.Switch;
public class Test {
    public static void main(String[] args){
        Switch s=new Switch();
        Buld d=new Buld(false,"meidi");
        Fan f=new Fan(false,"ximenzi");
        Projector p=new Projector(false,"xioami");
        //增加
        s.addlist(d);
        s.addlist(f);
        s.addlist(p);
        //打开
        System.out.println();
        System.out.println("打开-----------------------------------------");
        s.openAll();
        //关闭
        System.out.println();
        System.out.println("关闭-----------------------------------------");
        s.closeAll();
        //删除
        System.out.println();
        System.out.println("删除-----------------------------------------");
        s.removelist(d);
        s.openAll();
    }
}
